function loadcss(cssfile) {
	document.write('\<link rel="stylesheet" href="' + cssfile +'" type="text/css"/\>');
}

var css=['http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css',
		  static_url+'/css/resetStyle.css']
var jslist=['/plugins/jquery.min.js',
 			'/plugins/bootstrap/js/bootstrap.min.js',
 			"/js/angularjs/angular.min.js",
 			'/js/angularjs/angular-sanitize.min.js',
 			'/js/weixin_fake_data.js']
for (x in css){
	loadcss(css[x])
	}
for (x in jslist){
	loadjs(static_url+jslist[x])
	}

leave_name_map={
	'annual_leave':'年假',
	'sick_leave':'病假',
	'personal_leave':'事假',
	'swap_off':'调休',
	'birthday_leave':'生日假',
	'other_paid_leave':'除年假外带薪假',
	'miss_check':'漏打卡',
}
name_map={'name':'姓名',
		'category':'申请类型',
		'start_time':'开始时间',
		'end_time':'结束时间',
		'reason':'事由',
		'create_time':'申请提交时间',
		'status':'状态',
		'span':'长度'}
								
for(x in leave_name_map){
	name_map[x]=leave_name_map[x]
}